package com.yanqu.road.server.manager.beautyescort;

import com.yanqu.road.entity.beautyescort.EscortReport;

import java.util.Comparator;
import java.util.Map;

public class CrossBeautyEscortReportSort implements Comparator<Map.Entry<Long, EscortReport>> {

    @Override
    public int compare(Map.Entry<Long, EscortReport> o1, Map.Entry<Long, EscortReport> o2) {
        if(o1.getValue().getLatestRobTime() == o2.getValue().getLatestRobTime()){
            return 0;
        }
        return o1.getValue().getLatestRobTime() > o2.getValue().getLatestRobTime() ? -1 : 1;
    }
}
